<div class="content_block">
	<div class="content_header">Добавление трека</div>
	<div class="content_fill">
	<div style="padding:0px 10px 0px 10px">
		<form action = '<?php echo $addr ?>/add.php?type=track' method='post'>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="cat">Категория: </label></div> 
				<div class="flleft alleft w525p">
					<select id="cat" name="cat" style="width:140px;">
						<?php for ($i = 1; $i <= endKey($category); $i++) {
						if (isset($category[$i]))
						echo '<option value="'.$category[$i]["caid"].'" >'.$category[$i]["title"].'</option>';
						} ?>
					</select>
				</div> 
			</div> 
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="title">Название: </label></div>
				<div class="flleft alleft w525p"><input id="title" name="title" type="text" maxlength="255" value = "" /> 
				<label for="trno">Номер: </label>
				<label for="trno"><input id="trno" name="trno" type="text" maxlength="50" value = "" style="width:30px;"/></label></div>
			</div> 
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="url">Название для ЧПУ: </label></div>
				<div class="flleft alleft w525p"><input id="url" name="url" type="text" maxlength="255" value = ""/></div> 
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="artist">Исполнитель: </label></div>
					<div class="flleft alleft w525p">
					<select id="artist" name="artist" style="width:140px;"> 
						<?php for ($i = 0; $i < count($artist); $i++) {						 
						echo '<option value="'.$artist[$i]["name"].'" >'.$artist[$i]["name"].'</option>';
						} ?>
					</select>
					</div>
			</div> 
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="aid">Альбом: </label></div>
				<div class="flleft alleft w525p">
					<select id="alid" name="alid" style="width:140px;"> 
						<?php for ($i = 0; $i < count($albums); $i++) {						 
						echo '<option value="'.$albums[$i]["alid"].'/'.$albums[$i]["title"].'" >'.$albums[$i]["title"].'</option>';
						} ?>
					</select>
				</div>
			</div> 
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="genre">Жанр: </label></div>
				<div class="flleft alleft w525p"><input id="genre" name="genre" type="text" maxlength="255" value = ""/></div> 
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="year">Год: </label></div>
				<div class="flleft alleft w525p"><input id="year" name="year" type="text" maxlength="255" value = ""/></div>
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="length">Продолжительность: </label></div>
				<div class="flleft alleft w525p"><input id="length" name="length" type="text" maxlength="255" value = "0:00"/></div> 
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="image">Картинка трека: </label></div>
				<div class="flleft alleft w525p"><input id="image" name="image" type="text" maxlength="255" value = ""/></div> 
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="file">Файл трека: </label></div>
				<div class="flleft alleft w525p"><input id="file" name="file" type="text" maxlength="255" value = ""/></div> 
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="keywords">Ключевые слова: </label></div>
				<div class="flleft alleft w525p"><input id="keywords" name="keywords" type="text" maxlength="255" style="width:500px;" value = ""/></div>
			</div> 
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="description">Описание: </label></div>
				<div class="flleft alleft w525p"><textarea id="description" name="description" rows="" cols="" style="width:500px;"></textarea></div>
			</div>
			<div class="divclear ptop">
				<div class="flleft alright w200p"><label for="onmain">Выводить на главной:</label></div>
				<div class="flleft alleft w525p">
					<input id="onmain" name="onmain" type="checkbox" value="1" />
				</div>
			</div>
			<div class="divclear ptop">
				<input type = 'submit' name = 'send' value = 'отправить' />
			</div>
		</form>
	</div>			
	</div>
	<div class="content_footer"></div>
</div>
<br />